import axios from 'axios'

const base = {
  // 天行数据，抗击疫情api
  tianHost: 'http://api.tianapi.com',

  // 挖数据，国内地区疫情api
  waHost: 'https://grnx.api.storeapi.net',

  // 腾讯，疫情api
  tencentHost: 'https://api.inews.qq.com'
}

// 创建天行数据的axios
const tianRequset = axios.create({
  baseURL: base.tianHost
})
// 创建挖数据的axios
const waRequest = axios.create({
  baseURL: base.waHost
})
// 创建腾讯的axios
const tencentRequest = axios.create({
  baseURL: base.tencentHost
})

// 创建风险地区的axios
const riskArea = axios.create({
  baseURL: 'https://file1.dxycdn.com'
})

export {
  tianRequset,
  waRequest,
  tencentRequest,
  riskArea
}
